<template>
	<view>
		<button @tap="test">上传视频</button>
		<video class="pull-video" :src="src"></video>
	</view>
	<view style="padding: 20px;">
		<up-button size="small" type="primary" :plain="true" text="修改视频"></up-button>
		<up-button size="small" type="primary" :plain="true" text="修改视频"></up-button>
		
	</view>

	
</template>

<script>
	export default {
		data() {
			return {
				src: ''
			}
		},
		methods: {
			test: function () {
				var self = this;
				uni.chooseVideo({
					sourceType: ['camera', 'album'],
					success: function (res) {
						self.src = res.tempFilePath;
					}
				});
			}
		}
	}

</script>

<style>
	.pull-video {
	  width: 96%;
	  height: 320rpx;
	  margin-left: 2%;
	
	  
	}
	.pull-video-button {
		width: 100rpx;
		height: 70rpx;
	  padding: 20rpx;
	  border: 1rpx solid #e9a967;
	}

</style>